package Guess;




public class StoneScissorsCloImpl {
    public static String result_view;
    //  石头剪刀布游戏规则 {"剪刀":1, "石头":2,"布":3}
    //人-电脑 = 0（平）；人-电脑 = 1（人胜）；人-电脑 = -2（人胜）;
    // 人-电脑 = -1（电脑胜）；人-电脑 = 2（电脑胜）
    //  总结：人-电脑 = 0（平）; (人-电脑+3)%3 = 1（人胜）; (人-电脑+3)%3 = 2（电脑胜）
    public void gameStandard(int person, int computer){

        Result result = new Result();
        switch ((person-computer+3)%3) {
            case 0:
                result_view="平局";
                Result.Draws();

                //result.Draw();
                break;
            case 1:
                result_view="你赢了";
                Result.PersonWin();
                //result.PersonWin();
                break;
            case 2:
                result_view="你输了";
                Result.PersonLoss();
                //result.ComputerWin();
                break;
        }


    }
}

